package com.ruoyi.tranShort.config;

import com.ruoyi.tranShort.mqtt.PropertiesUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author wwy
 * @date 2021-08-20 18:49
 */
@Component
public class Init implements ApplicationRunner {
    private static final Logger LOGGER = LoggerFactory.getLogger(Init.class);
    @Override
    public void run(ApplicationArguments args) throws Exception {
        LOGGER.info("=========================初始化mqtt配置开始=========================");
        //初始化mqtt配置信息
        PropertiesUtils.init();
        LOGGER.info("=========================初始化mqtt配置结束=========================");
    }
}
